const mongoose=requie('mongoose')
mongoose.connect('mongodb://127.0.0.1:27017/manghe')
const conn=mongoose.connection
conn.on('open',(req,res)=>{
    console.log("连接成功");
})
conn.on('error',(error)=>{
    console.log("连接失败,失败原因为：",error);
})
module.exports=mongoose